package com.example.bili.service.impl;

import com.example.bili.dao.FollowDao;
import com.example.bili.entity.Favor;
import com.example.bili.entity.Follow;
import com.example.bili.service.FavorService;
import com.example.bili.service.FollowService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class FollowImpl implements FollowService {

    @Resource
    private FollowDao followDao;


    @Override
    public boolean addFlow(Follow flow) {
        return followDao.addFlow(flow)>0;
    }

    @Override
    public boolean delFlow(int id) {
        return followDao.delFlow(id)>0;
    }
}
